package code.structure.module.scene.view.iso.product.base
{
	/**
	 *类 四个状态  多次生长 有枯萎(果树/种子/消耗类货架)
	 * @author Yuri
	 * 
	 */
	public class ProductedCIsoObject extends ProductedBIsoObject
	{
		public function ProductedCIsoObject()
		{
			super();
			isHaveOnlyOneFrame = false;
		}
		
		/**
		 *生产过程 
		 * 
		 */
		override protected function onProductProgressHandler():void
		{
			super.onProductProgressHandler();
			if(timerCount != ripeCycleCount){
				checkProgressStatus();
			}
		}
		
		override protected function jumpProgressStatus():void{
			checkProgressStatus();
		}
		
		/**
		 *检查在生产过程中的变换 
		 * 
		 */
		private function checkProgressStatus():void
		{
			// TODO Auto Generated method stub
			if((ripeCycleCount-timerCount)<productShopItemData.productAttachData.growTime/2){
				super.jumpProgressStatus();
			}else{
				super.jumpInitStatus();
			}
		}
		
	}
}